

class MyThread extends Thread {
    @Override
    public void run() {
        int i = 100;
        while(i != 0 ) {
            System.out.println(i);
            i--;
        }
    }
}

public class Threaddemo1 {
    public static void main(String[] args) throws InterruptedException {
        Thread t = new MyThread();
        t.start();
        t.join();
    }
}
